<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang='en'>
<head>
	<title>Welcome to my blog</title>
	<link rel='stylesheet' type='text/css' media='screen' href='/static/css/default.css'>
</head>
<body>

<div class='Top'>
	<div class='TopMain'>
		<h3>Welcome to my blog</h3>
			<div class='Margins'>
			{% if error %}
				<p class='niche'>Did not find a relevant article or you enter a null character.</p>
			{% endif %}
				<form action = '/query/' method = 'get'>
				<input type='text' name='query'>
				<input type="submit" value='Search'>
				</form>
			</div>
		<div id='Navigation'>
			<a href='accounts/login'>登入</a>
			<a href='accounts/logout'>注销</a>	
		</div>
	</div>
</div>
<!--top end-->
<div id='Main'>	

	<div class='lef'>
		<div id='rigth'>
			<div class='cation'>
				关于我
				<hr>
				<form action="/about-me/" method="post"  enctype="multipart/form-data">
				<div>
					{% if images %}
					<div><img src='static/userpop/{{ images }}' width="200px" height="150px" align=''></div>
					<a href='/delete_images/'>删除图片</a>
					<input type="file" name="image" value="更换图片">
					{% else %}
					<div>您还没有头像，<input type="file" name="images" value="上传图片"></div>
					{% endif %}
				</div>
					<input type="submit" value="保存" name="submit">
				</form>
			</div>

			<div class='cation'>	
				分类列表
				<hr>
				{% if judgment %}
				<form action = '/add/' method = 'get'>
					<input type="submit" value='添加分类'>
					<input type='text' name='add'>
				</form>
				{% endif %}

				{% for i in classification %}
					<a href = '/classification/{{i.id}}/' class='green'>{{i.type}}</a></br>
					{% for j in i.artcle reversed%}
					<span>
						<a href="log_content/{{j.id}}" class='node'>{{ j.title }}</a>
					</span>
					{% endfor %}
					</br>
				{% endfor %}
			</div>
			
			<div class='cation'>
				标签列表
				<hr>
				{% for i in contact_list %}
				<a href='log_content/{{i.id}}' class='green' style='font-size:{{size}} pt;'>{{ i.label }}</a>
				{% endfor %}
			</div>

		</div>
		<div class='over'>
			<div id='log'>
				{% for i in contacts.object_list %}
					{{ contact.full_name|upper }}
					<div class='content'>
							<img class='normal' src='/static/material/book.jpg'>
							<span>
								<a href="log_content/{{i.id}}" class='title'>{{i.title}}</a>
							</span>
							<a class='count_livid'>{{ i.rep }}</a>
						<hr>
							<div class='post_info'>
							Posted in |<a herf='classification/{{i.id}}/'>{{ i.log_foreign.type }} </a>|
							发表日期:{{i.date}}</div>
							<span class='log_content'>
								<p class='indentation'>{{i.content}}</p>
								<a href="log_content/{{i.id}}" class='more'>阅读</a>
							</span>

							<span class='created'>
								{% if judgment %}
								<a href='/delete/{{i.id}}/{{b}}'>删除日志|</a>
								<a href='/editor/{{i.id}}/'>编辑日志|</a> 
								{% endif %}
						<hr>
							<div class='tags'>Tags</div>
								<a href='/classification/{{i.id}}/' class='min'>{{ i.log_foreign.type }}</a>
								<a href='/' class='min'>{{ i.label }}</a>
							</span>

						</div>
				{% endfor %}
			</div>
		</div>
	</div>

	<div class="pagination">
		<span class="step-links">
			{% if contacts.has_previous %}
				<a href="?page={{ contacts.previous_page_number }}">上一页</a>
			{% endif %}

			<span class="current">
				第 {{ contacts.number }}页，共{{ contacts.paginator.num_pages }}页.
			</span>

			{% if contacts.has_next %}
				<a href="?page={{ contacts.next_page_number }}">下一页</a>
			{% endif %}
		</span>
	</div>
</div>
<!--content end-->
<body>
<html>
